package zj.xinxin.api.moudle.article.api;

import com.baomidou.mybatisplus.extension.service.IService;
import zj.xinxin.api.moudle.article.dto.CategoryDto;
import zj.xinxin.api.moudle.article.entity.CategoryEntity;
import zj.xinxin.api.moudle.article.vo.CategoryPageSearchVo;
import zj.xinxin.api.moudle.article.vo.CategoryVo;
import zj.xinxin.common.result.PageResult;

import java.util.List;

/**
 * <p>
 * 分类  服务类
 * </p>
 *
 * @author zhoujun
 * @since 2022-04-12
 */
public interface CategoryService extends IService<CategoryEntity> {

    Boolean addByVo(CategoryVo categoryVo);

    PageResult<CategoryDto> searchCategoryByPage(CategoryPageSearchVo search);

    List<CategoryDto> listRoot();


}
